# -*- coding: UTF-8 -*-
'''
Created on 2012-6-21
字典
@author: Administrator
'''
ab = {'Swaroop'   : 'swaroopch@byteofpython.info',
      'Larry'     : 'larry@wall.org',
      'Matsumoto' : 'matz@ruby-lang.org',
      'Spammer'   : 'spammer@hotmail.com'
    }

print 'Swaroop Email is', ab['Swaroop']
#add
ab['Guido'] = 'guido@python.org'

print ab
#delete
del ab['Larry']
print ab

for name, address in ab.items():
    print '%s Email is %s' % (name, address)

if 'Guido' in ab :
    print 'Gudo Email is', ab['Guido']
